package com.yfree.models;

import androidx.annotation.Nullable;

import com.yfree.interfaces.YBroadcastReceiver;

public class YBroadcastModel {
    public String action;
    public YBroadcastReceiver receiver;

    public YBroadcastModel(String action, YBroadcastReceiver receiver) {
        this.action = action;
        this.receiver = receiver;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public YBroadcastReceiver getReceiver() {
        return receiver;
    }

    public void setReceiver(YBroadcastReceiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public boolean equals(@Nullable Object obj) {
        return action.equals(((YBroadcastModel) obj).action);
    }
}
